package com.example.controllers;


/**
 * Sample Skeleton for "main.fxml" Controller Class
 * You can copy and paste this code into your favorite IDE
 **/

import javafx.fxml.FXML;
import javafx.scene.layout.BorderPane;


public class MainController
{
	@FXML
	private StatusBarController statusbarController;

    @FXML //  fx:id="layout"
    private BorderPane borderPane; // Value injected by FXMLLoader


    
    // Implementing Initializable Interface no longer required on JavaFX 2.2 according to
    // http://docs.oracle.com/javafx/2/fxml_get_started/whats_new2.htm:
    @SuppressWarnings("unused") // only called by the FXMLLoader
	@FXML // This method is called by the FXMLLoader when initialization is complete
    private void initialize() {
        // initialize your logic here: all @FXML variables will have been injected
    	assert borderPane != null : "fx:id=\"borderPane\" was not injected: check your FXML file 'main.fxml'.";
        System.out.println("MainController initialize()");

        //statusbarController.setStatusText("Hello from MainController"); // this fails because statusbarController is not injected as expected
    }
}



